home *** CD-ROM | disk | FTP | other *** search
- CONVERTS.DOC Version 5.3
-
- Elizabeth Anne VanderPutten, Ph.D.
- Office of Information Systems
- National Science Foundation
- Washington, D.C.
-
-
- Syntax: CONVERTS <cr>
-
- Purpose:
-
- CONVERTS reads a file downloaded from DB2 and creates a second
- file in any of the following formats:
-
- dBASE III + database
- Lotus 1-2-3 worksheet
- Word Perfect mail merge
- Comma delimited ASCII
-
- The original file is unchanged.
-
- CONVERTS supports the DOS PATH designations.
-
- Contents:
-
- CONVERTS.EXE main program
- CONVERT.COM self reading copy of document
- LICENSE.COM self reading copy of license
-
- Requirements:
-
- IMPORTANT: The file to be converted must be downloaded
- fron the DB2 database using QMF ONLY. DO NOT use TSO!
-
- DO use only the simplest possible downloading procedure!
-
- Also, you obviously need enough disk space for the
- new dBASE III+, Lotus, Mail Merge, or ASCII text file,
- plus enough space for CONVERTS' workfile.
-
- Operation:
-
- At the DOS prompt type CONVERTS <cr>
-
- CONVERTS loads and asks for the name of the file you wish
- to convert. After checking the input file, CONVERTS asks
- you to select the type of output file you want.
-
- It warns you of any problems or unusual conditions as it
- processes your file.
-
- CONVERTS then reads your input file, makes a temporary
- workfile, produces your dBASE file and cleans up after
- itself. As it processes your data, CONVERTS tells you
- what it is doing. When finished, it tells you how long
- it took and displays you new file statistics.
-
- PROBLEMS:
-
- o Wrong File Type
-
- 1. When CONVERTS first starts, it checks for the QMF
- signature in the file and, if missing, gives a message
- telling you it is the wrong type of file.
-
- To correct this problem, download the file again from
- DB2.
-
- 2. A file set to "Read Only" also causes CONVERTS to
- issue a "wrong file type" message. (See "Read Only Input
- File" below.)
-
- o Field Width Determination
-
- In determining the structure of the input file, CONVERTS
- attempts to verify the field width information provided
- by DB2/QMF. If there are problems, CONVERTS may ask
- you for more information.
-
- The best way to avoid problems it to make sure to download
- you data using the simplest bare bones QMF procedure.
-
- o Duplicate Field Names
-
- A second problem that could arise is duplicate field
- names in the dBASE file. This could happen if the first
- 10 characters of two or more DB2 field names happen to
- be the same. The reason is that field names in DB2 may
- be up to 15 characters long. CONVERTS uses the first 10
- of these for its dBASE field names.
-
- It is often possible to correct this problem simply by
- loading the file into dBASE and using the MODIFY
- STRUCTURE command to change the name of one of the
- duplicate field names.
-
- o Unexpected End-of-File Marker
-
- A corrupt file is another problem. CONVERTS attempts to
- verify the file's integrity by reading it. If CONVERTS
- finds an ASC 26 character anywhere in your file, it takes
- that as an end-of-file marker and stops loading data.
-
- You can ususally tell if this has happened by looking at
- the statistics for your new file which include the number
- of records loaded.
-
- To correct this problem, check the file with a text
- editor like QEDIT. Ask it to replace all occurances of
- ASC 026 with ASC 032. With QEDIT, the relevant keys are
- Ctrl-Q-A, i.e., press Ctrl-Q and at the <more> prompt
- enter the letter A. At the "Search For:" prompt, hold down
- the ALT key and, using the number pad, enter the digits
- 026. Release the Alt key and press Enter. At the
- "Replace with" prompt, hold down the ALT key and enter the
- digits 032 on the KEY pad. Finally, at the "Options"
- prompt enter GIN (for Global, Ignore case, No-don't
- ask). Save the file by pressing Alt-X and Y to save.
-
- Start CONVERTS again.
-
- o Read Only Input File
-
- An unlikely problem is an error message indicating a
- wrong file type even though the file has been properly
- downloaded.
-
- This will occur if your input file is set to "Read
- Only." To correct this problem, see "ATTRIB" in a DOS
- manual or call the network administrator.
-
- Example:
-
- C:\DOS\ATTRIB -R filespec where filespec is the
- filename including path (if
- needed) and extension.
-
- July 26, 1990
-
-